﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SIGERP_Entidades;
using SIGERP_Datos;

namespace SIGERP_Negocio
{
    public class SubtiposReclamo
    {
        public static List<SubtipoReclamo> buscarSubtipos()
        {
            return HndSubtipoReclamo.getAll();
        }

        public static SubtipoReclamo buscarSubtipo(int id)
        {
            return HndSubtipoReclamo.getOne(id);
        }

        public static Boolean actualizar(SubtipoReclamo st)
        {
            return HndSubtipoReclamo.update(st);
        }

        public static Boolean borrar(SubtipoReclamo st)
        {
            return HndSubtipoReclamo.delete(st);
        }

        public static Boolean nuevo(SubtipoReclamo st)
        {
            return HndSubtipoReclamo.insert(st);
        }

        public static bool validarSiExiste(SubtipoReclamo st)
        {
            return HndSubtipoReclamo.validarSiExiste(st);
        }

        public static bool validarSiHayReclamosAsociados(SubtipoReclamo st)
        {
            return HndSubtipoReclamo.hayReclamosAsociados(st);
        }

        public static bool deshabilitarSubtipo(SubtipoReclamo st)
        {
            return HndSubtipoReclamo.disable(st);
        }
    }
}
